//
//  BeijingTabCell.m
//  PASystem
//
//  Created by 刘沿 on 16/8/18.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "BeijingTabCell.h"

@implementation BeijingTabCell

+ (instancetype)WithBeijingTabCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"BeijingTabCell" owner:nil options:nil] lastObject];
}

- (void)setModel:(BeijingModel *)model{
    _model = model;

    self.EDI.text = model.EDI;

    self.EMBASSY.text = model.EMBASSY;
    
    self.ENTERPRISENAME.text = model.ENTERPRISENAME;
    
    NSString *string = model.APPLYTIME;
    NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
    fmt.dateFormat = @"MMM d, yyyy HH:mm:ss aa";
    fmt.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en-US"];
    NSDate *date = [fmt dateFromString:string];
    NSDateFormatter *fm = [[NSDateFormatter alloc] init];
    fm.dateFormat = @"yyyy-MM-dd";
    NSString *selfYear = [fm stringFromDate:date];
    
    self.APPLYTIME.text = selfYear;
    
    
    
}



@end
